package com.heima.wemedia.controller.v1;

import com.heima.model.user.pojos.ApUser;
import com.heima.model.wemedia.pojos.WmUser;
import com.heima.wemedia.service.WmUserService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping()
@RequiredArgsConstructor
public class WmUserController {

    private final WmUserService wmUserService;


    @PostMapping("/api/v1/auth/save")
    public void saveUser(@RequestBody ApUser apUser) {

        wmUserService.saveUser(apUser);
    }
}
